package com.demo.designmode.decorator;

/**
 * @Author: jxm
 * @Description: 配料类(抽象装饰角色)
 * @Date: 2023-12-13 14:03
 * @Version: 1.0
 */
public abstract class Garnish extends FastFood{

    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(float price, String desc, FastFood fastFood) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
